import BaseModel from "../baseModel.js";

class AdopterModel extends BaseModel {
    /**
     * 
     * @param {AdopterModel} model 
     */
    constructor(model) {
        super(model);
        /* 自定义属性以及重载 */
        this.ownerID = AdopterModel.CheackNull(model.ownerID); // 主人id 
        this.adopterID = model.adopterID;
        this.issueTime = new Date(model.issueTime)
        this.petID = model.petID
        this.demand = model.demand
        this.story = model.story
        this.adopterCharacter = model.adopterCharacter
        this.isPassed = AdopterModel.CheackBoolean(model.isPassed)
    }
    static Instance = 'pet' // 表名
}
export default AdopterModel;